package xin.infinite.service;

import xin.infinite.entity.User;

import javax.servlet.http.HttpServletResponse;

public interface UserService {
    User saveUser(User user);

    User findUser(String email, String password);

    boolean register(String email, String password, String code);

    boolean isRegister(String email);

    String getEmail(String token);

    String login(String email, String password, HttpServletResponse response);

}
